﻿using System;
using System.Runtime.InteropServices;
using OpenGL;

namespace BeamOff
{
	public class Sys
	{
		/// <summary>
		/// undocumented CoreGraphics framework method, present in the same form
		/// since at least OS X 10.5
		/// </summary>
		/// <param name="mode">Mode.</param>
		[DllImport ("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")]
		public static extern void CGSSetDebugOptions (nint mode);

		/// <summary>
		/// undocumented CoreGraphics framework method, present in the same form
		/// since at least OS X 10.5
		/// </summary>
		/// <param name="mode">Mode.</param>
		[DllImport ("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics")]
		public static extern void CGSDeferredUpdates (nint mode);
	}

	public enum beamSyncMode
	{
		disableBeamSync = 0,
		automaticBeamSync = 1,
		forcedBeamSyncMode = 2
	}
}

